home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / bbs / firewall.zip / FIREWALL.DOC < prev    next >
Text File  |  1996-10-07  |  27KB  |  468 lines

  1. ─────────────────────────────────────────────────────────────────────────────
  2.     ▄▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄▄  ▄▄▄▄▄▄▄  ▄▄▄▄     ▄▄▄ ▄▄▄▄▄▄▄▄ ▄▄▄▄     ▄▄▄▄
  3.     █  █ █ █ █  █ █  █ █ █ █  █ █ █ █  █     █ █ █  █ █ █ █  █     █  █
  4.     █░░█ ▀▀▀ ▀▀▀▀ █░░█▄█▀  █░░█ ▀▀▀ █░░█ ▄▄▄ █░█ █░░█ █░█ █░░█     █░░█
  5.     █▒▒█▀    ▄▄▄▄ █▒▒█▀ █  █▒▒█▀    █▒▒█ █▒█ █▒█ █▒▒█▄█▒█ █▒▒█     █▒▒█
  6.     █▓▓█     █▓▓█ █▓▓█  ▓█ █▓▓█ ▄▄▄ █▓▓█ █▓█ █▓█ █▓▓█ █▓█ █▓▓█ ▄▄▄ █▓▓█ ▄▄▄
  7.     ████     ████ ████  ██ ████ ███ ████ ███ ███ ████ ███ ████ ███ ████ ███
  8.     ▀▀▀▀     ▀▀▀▀ ▀▀▀▀  ▀  ▀▀▀▀▀▀▀  ▀▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀ ▀▀▀ ▀▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀▀
  9.     v1.00                By: Michael J. van Zwieten                10/07/96
  10. ─────────────────────────────────────────────────────────────────────────────
  11. ┌───────────────────────────────────────────────────────────────────────────┐
  12. │░░░▒▒▒▓▓▓ Index                                                          1 │
  13. └───────────────────────────────────────────────────────────────────────────┘
  14.                       Index...............................................1
  15.                       Disclaimer..........................................2
  16.                       License Agreement...................................3
  17.                       Program Description.................................4
  18.                       A real life example using Firewall!.................5
  19.                       System Requirements.................................6
  20.                       Enclosed File Descriptions..........................7
  21.                       Installation of Firewall!...........................8
  22.                       Setting up Firewall, step by step...................9
  23.                       How I run Firewall on my system....................10
  24.                       Ideas on how you can Firewall!.....................11
  25.                       Additional Commandline Parameters..................12
  26.                       Common Errors & Answers to Questions...............13
  27.                       Registering Firewall!..............................14
  28.                       Acknowledgements...................................15
  29.                       Thanks.............................................16
  30.  
  31. ┌───────────────────────────────────────────────────────────────────────────┐
  32. │░░░▒▒▒▓▓▓ Disclaimer                                                     2 │
  33. └───────────────────────────────────────────────────────────────────────────┘
  34.  
  35.                       Firewall is distributed without any type of warranty.
  36.                       Michael J. van Zwieten assumes no liability to you or
  37.                       any subsequent users for any damages, including any
  38.                       lost profits or other incidental or consequential
  39.                       damages arising out of your use or inability to use
  40.                       Firewall, even if Michael J. van Zwieten has been
  41.                       advised of any possibility of such damages.  Michael J.
  42.                       van Zwieten will also not be liable for any such claim
  43.                       made by a third party.
  44.  
  45.                       Basically...it has been tested, and it works as far as
  46.                       I know.
  47.  
  48. ┌───────────────────────────────────────────────────────────────────────────┐
  49. │░░░▒▒▒▓▓▓ License Agreement                                              3 │
  50. └───────────────────────────────────────────────────────────────────────────┘
  51.  
  52.                       The Firewall program, support files, and documentation
  53.                       are copyrighted products of Michael J. van Zwieten.
  54.                       Michael J. van Zwieten reserves all rights to these
  55.                       products.  This is protected by the United States of
  56.                       America (USA) and International Copyright Laws.  In no
  57.                       way shall the components of the software package be
  58.                       reproduced or modified in any form or method without
  59.                       prior expressly written permission from Michael J. van
  60.                       Zwieten.
  61.  
  62.                       Tampering with or altering the contents or integrity of
  63.                       the software package is prohibited.  No fee may be
  64.                       charged by any agency other than Michael J. van Zwieten
  65.                       beyond the cost of distributing unregistered copies
  66.                       without prior expressly written permission from Michael
  67.                       J. van Zwieten.
  68.  
  69.                       A major portion of this software comes from the DDPlus
  70.                       Door Driver Package and was written by the authors of
  71.                       that package. The DDPlus Doordriver kit has been used
  72.                       for the communications, interrupt handling and some
  73.                       utility functions and that part of the software remains
  74.                       copyrighted by the authors of the DDplus Package.
  75.  
  76. ┌───────────────────────────────────────────────────────────────────────────┐
  77. │░░░▒▒▒▓▓▓ Program Description:                                           4 │
  78. └───────────────────────────────────────────────────────────────────────────┘
  79.  
  80.                       Firewall is a door program that was designed to load
  81.                       after a front-end mailer, or logon matrix, and acts as
  82.                       a front-end, requiring a valid Username and Password
  83.                       before being allowed to pass to whatever program you
  84.                       have set it up to pass to using errorlevels in a
  85.                       batchfile.  Firewall was made to emulate a Unix logon
  86.                       in a Telnet session.  This entails that names must be
  87.                       typed in EXACTLY the way they are written in the config
  88.                       file, caps and lowercase characters, and a no-echoing
  89.                       password entry.  If the Username and Password were
  90.                       entered right, Firewall will exit them out with
  91.                       an errorlevel, and if after 2 attempts, the Username
  92.                       and Password are still wrong, Firewall will drop
  93.                       carrier on the user, and exit to a different
  94.                       errorlevel.
  95.  
  96. ┌───────────────────────────────────────────────────────────────────────────┐
  97. │░░░▒▒▒▓▓▓ Real-life Example:                                             5 │
  98. └───────────────────────────────────────────────────────────────────────────┘
  99.  
  100.                       I currently use Firewall to only allow those who
  101.                       actively used Fidonet Email on my old Bulletin Board,
  102.                       while running a newer Bulletin Board on the side.
  103.                       The old board was still fully configured to handle
  104.                       the mail traffic, while the new one was still under
  105.                       construction.  Firewall allowed me to effectively
  106.                       control who I wanted to logon to the old BBS without
  107.                       having to totally re-configure the old BBS by wiping
  108.                       out user configurations, and setting the BBS to not
  109.                       accept any new callers.
  110.  
  111. ┌───────────────────────────────────────────────────────────────────────────┐
  112. │░░░▒▒▒▓▓▓ Requirements:                                                  6 │
  113. └───────────────────────────────────────────────────────────────────────────┘
  114.  
  115.                       At this point in time the only requirements are
  116.                       FILES=10 (or more) in your config.sys file and
  117.                       ANSI.SYS.  SHARE must also be loaded IF you intend to
  118.                       use the Firewall program in a multi-node environment OR
  119.                       under DesqView.  The Firewall program is RIP aware but
  120.                       NOT a RIP program at this time.  A FOSSIL is NOT
  121.                       required to run the Firewall program, although one will
  122.                       be supported if it exists.  Automatic time slicing
  123.                       support is provided to most common multi-taskers as
  124.                       well.
  125.  
  126. ┌───────────────────────────────────────────────────────────────────────────┐
  127. │░░░▒▒▒▓▓▓ Enclosed Files & Descriptions:                                 7 │
  128. └───────────────────────────────────────────────────────────────────────────┘
  129.  
  130.                       FIREWALL.DOC - What you're reading right now!
  131.                       REGISTER.FRM - The Registration Form.
  132.                       WHATS.NEW    - Standard "what's new in this version"
  133.                       FIREWALL.EXE - Main executable
  134.                       FIREWALL.CTL - DDPlus Door Driver Control File.  I'll
  135.                                      go over the config for this file later
  136.                                      on in this document.
  137.                       SAMPLE.CTL   - Complete Sample DDPlus Door Driver
  138.                                      Control File... look at this for further
  139.                                      examples if you need to.
  140.                       FIREWALL.CFG - Registration / Sysop / BBS Config File.
  141.                                      I'll go over the config for this file
  142.                                      later on in this document.
  143.                       USERIDS.CFG  - Username and Password Config File.
  144.                                      I'll go over this too, later on in this
  145.                                      file.
  146.                       DOOR.SYS     - Door Drop File.  This file must stay
  147.                                      with the other files, and will go over
  148.                                      any changes later on in this document.
  149.  
  150. ┌───────────────────────────────────────────────────────────────────────────┐
  151. │░░░▒▒▒▓▓▓ Installation of Firewall:                                      8 │
  152. └───────────────────────────────────────────────────────────────────────────┘
  153.  
  154.                       Just unzip FIREWALL.ZIP and *ALL* it's files into it's
  155.                       own subdirectory of your choice.  I will refer to
  156.                       Firewall being in the C:\BBS\DOORS\FIREWALL directory
  157.                       in this document.
  158.  
  159. ┌───────────────────────────────────────────────────────────────────────────┐
  160. │░░░▒▒▒▓▓▓ Setting up Firewall, step by step:                             9 │
  161. └───────────────────────────────────────────────────────────────────────────┘
  162.  
  163.    The following 4 files, found in your Firewall directory will be ones
  164.    you'll have to use a text editor on to customize your copy of Firewall:
  165.  
  166.        1). FIREWALL.CTL
  167.        2). FIREWALL.CFG
  168.        3). DOOR.SYS
  169.        4). USERIDS.CFG
  170.  
  171.    Here is a brief description and overview on what to do to each file:
  172.    
  173.        1).  Editing FIREWALL.CTL.  The FIREWALL.CTL file contains information
  174.             vital to the operation of the Firewall Door.  All items listed
  175.             here must be included, and filled out.  The following is the
  176.             sample (and working) FIREWALL.CTL file:
  177.  
  178.             SYSOPFIRST Joe
  179.                        ^^^ - Change this to your First Name
  180.             SYSOPLAST Schmoe
  181.                       ^^^^^^ - Change this to your Last Name
  182.             BBSNAME The Dark Side BBS
  183.                     ^^^^^^^^^^^^^^^^^ - Change this to your BBS Name 
  184.             BBSTYPE DOORSYS
  185.                     ^^^^^^^ - Leave this as is - we're using the DOOR.SYS
  186.                               that was enclosed with this archive.
  187.             COMPORT 1
  188.                     ^ - Change this to your COM port number
  189.  
  190.             XFOSSIL   - Use this if your COM port's locked Baud rate is at
  191.                         or above 57600, and you're using an external Fossil
  192.                         Driver. If your locked Baud Rate is lower, using an
  193.                         external Fossil Driver, change this value to FOSSIL.
  194.                         If your not using any kind of external Fossil Driver,
  195.                         just totally delete this option, and FIREWALL will
  196.                         use it's own internal Fossil routines.
  197.  
  198.             PORT1 03F8 4
  199.                 |   |  |- Change this to your COM port's IRQ channel
  200.                 |   |
  201.                 |   |---- Change this to your COM port's physical address
  202.                 |         COM1 is usually 03F8 and IRQ 4
  203.                 |         COM2 is usually 02F8 and IRQ 3
  204.                 |
  205.                 |---------Change this to your COM port number
  206.  
  207.             LOCKBAUD 57600
  208.                      ^^^^^ - Change this to your COM port's locked baud rate.
  209.                              14.4k Modems usually are at 38400
  210.                              28.8k Modems usually are at 57600 or 115200
  211.  
  212.             STATUS ON - Leave this as is - keeps the status bar on the bottom
  213.                         of the screen on.
  214.  
  215.             STATFORE 7 - Leave this as is - Status Bar Foreground color
  216.  
  217.             STATBACK 1 - Leave this as is - Status Bar Background color
  218.  
  219.             For more information or additional entries/features not mentioned
  220.             here, please refer to the SAMPLE.CTL file included with this
  221.             archive.
  222.  
  223.        2).  Editing FIREWALL.CFG.  The FIREWALL.CFG file contains your
  224.             Registration Number, Sysop Name and BBS/Business Name.  If you
  225.             have not registered, it's a good thing to just keep the top line
  226.             all 0's.  If you have registered, I'd like to thank you very
  227.             much for contributing to the development of this program!  The
  228.             following is the sample (and working) FIREWALL.CFG file:
  229.  
  230.             0000000              - Your registration number
  231.             Joe Schmoe           - Your Full Name
  232.             The Dark Side BBS    - Your BBS Name
  233.  
  234.        3).  Editing DOOR.SYS.  The DOOR.SYS file is a Door Drop File usually
  235.             created by your BBS software to tell the Door Program some
  236.             information about the caller before entering the door, so that it
  237.             can pass on names, time left on the BBS, etc.  Other familiar
  238.             Door Drop Files are DORINFO1.DEF, TRIBBS.SYS, PCBOARD.SYS, etc.
  239.             The following is the top portion of the enclosed DOOR.SYS file.
  240.             You will only need to edit the top portion of this file for your
  241.             needs to get the door up and running.  If you are going to use
  242.             Firewall in a situation other than a front-end (where the user
  243.             physically hasn't logged on yet to produce a DOOR.SYS file), then
  244.             you will need to have your BBS or batchfiles copy the newly
  245.             created DOOR.SYS file to your Firewall directory:
  246.  
  247.             COM1:      - Change this to reflect your COM port number.
  248.             28800      - Change this to your modem's highest connect speed.
  249.             8          - Don't worry about this...
  250.             2          - Don't worry about this either...
  251.             57600      - Change this to your COM port's locked Baud Rate.
  252.             ...
  253.             ...        - Leave the rest unchanged...
  254.             ...
  255.  
  256.        4).  Editing USERIDS.CFG.  The USERIDS.CFG file contains the Usernames
  257.             and passwords for those who you want to be able to pass through
  258.             the Firewall door.  Please remember that if the user wants to
  259.             logon correctly, he/she must type in the name/password *EXACTLY*
  260.             as you have it in the USERIDS.CFG.  Missed Caps/lowercase letters
  261.             will not be tolerated by the system (like Unix!) :)
  262.             The following is the sample (and working) USERIDS.CFG file:
  263.  
  264.             Jack Indabocks  - Name 1
  265.             stardestroyer   - Password for Name 1
  266.             Mike Hunt       - Name 2
  267.             wanker          - Password for Name 2
  268.             ...
  269.             ...
  270.             Joe Bloe        - Name X
  271.             schmoe          - Password for Name X - *NOTE* Don't hit enter on
  272.                               the last line in the USERIDS.CFG file.  If you
  273.                               did, just move the cursor to the end of the
  274.                               last line, and lean on the delete key until you
  275.                               are pretty sure all the carriage returns are
  276.                               gone, then save.
  277.  
  278.  
  279.   That's it for editing files!  Now let's take a look at some examples on how
  280.   we can set Firewall up to run for you!
  281.  
  282. ┌───────────────────────────────────────────────────────────────────────────┐
  283. │░░░▒▒▒▓▓▓ In basic terms, how I run Firewall on my System:              10 │
  284. └───────────────────────────────────────────────────────────────────────────┘
  285.  
  286.                       1). My Front-end Mailer picks up the call.
  287.                       2). A Logon Matrix lets the user pass on to a variety
  288.                           of choices, one of which is Firewall.
  289.                       3). If Firewall is chosen, it runs via a batchfile:
  290.  
  291.                           :Firewall
  292.                           @echo off
  293.                           cd c:\bbs\doors\firewall
  294.                           firewall
  295.                           if errorlevel 2 goto OldBBS
  296.                           if errorlevel 1 goto Cleanup
  297.                           goto AfterBBS
  298.  
  299.                          :OldBBS
  300.                          ... runs old BBS
  301.  
  302.                          :Cleanup
  303.                          ... after BBS cleanup & maintenance
  304.  
  305.                       If the user passed the Username/Password, he/she will
  306.                       exit with an errorlevel of 2, and pass onto the Old
  307.                       BBS.  If they fail the logon, they will have carrier
  308.                       dropped on them, and Firewall will exit with an
  309.                       errorlevel of 1, and pass onto the After BBS cleanup.
  310.                       This example above could also easily be dropped right
  311.                       into your Front-end Mailer Batchfiles, or, into any
  312.                       one of your Door Batchfiles!
  313.  
  314. ┌───────────────────────────────────────────────────────────────────────────┐
  315. │░░░▒▒▒▓▓▓ How you could run Firewall:                                   11 │
  316. └───────────────────────────────────────────────────────────────────────────┘
  317.  
  318.                       Firewall is very configurable to use pretty much
  319.                       anywhere for anything!  You could run it right after
  320.                       your mailer picks up the call, before it hits the
  321.                       BBS... or you could set Firewall up to run before an
  322.                       adult Door Game is run to completely control who can
  323.                       go in and who can't.  I'm sure each and everyone of
  324.                       you will be able to make great use of Firewall!
  325.  
  326. ┌───────────────────────────────────────────────────────────────────────────┐
  327. │░░░▒▒▒▓▓▓ Additional Commandline Parameters, if you want or need them:  12 │
  328. └───────────────────────────────────────────────────────────────────────────┘
  329.  
  330.                       "/Bxxxxx"   This tells FIREWALL.EXE to lock its baud
  331.                       rate at xxxxx.  In order to get the most efficiency out
  332.                       of a high speed error correcting modem (9600 baud or
  333.                       above), you may lock the baud rate to a speed higher
  334.                       than what the caller is actually using.  By locking the
  335.                       baud to say 38,400, the modem can compress text data
  336.                       that is being sent and achieve a baud rate much higher
  337.                       than the actual transmission rate.  This will lock the
  338.                       baud rate at the same value for all nodes that use this
  339.                       command line.  If you perfer a more selective way to
  340.                       lock baud use 'LOCKBAUD' command in the FIREWALL.CTL
  341.                       file.
  342.  
  343.                       "/Cx"   (where x is 1..4) This specifies a comport
  344.                       number.  Some bbs software does not create door
  345.                       information files (dropfiles) that contain the comport
  346.                       number.  If your bbs does have a comport listed in the
  347.                       dropfile then there is no need for this parameter.  The
  348.                       default is comport 0, local mode.
  349.  
  350.                       "/E"    - Expanded Memory Specification.  If your
  351.                       machine has over one megabyte of memory, then you may
  352.                       have some available.  FIREWALL.EXE can utilize EMS to
  353.                       improve performance and reduce conventional memory
  354.                       requirements.  This command will tell FIREWALL.EXE to
  355.                       use EMS memory to hold its overlay buffer.  Otherwise
  356.                       harddisk area may be used to hold this buffer.  This
  357.                       needs a memory manager and when enabled and is
  358.                       compatible with DESQview.  Default is NOT to use
  359.                       available EMS.
  360.  
  361.                       "/L"    This tells FIREWALL.EXE to load up in LOCAL
  362.                       mode.  This is good for testing or when a sysop just
  363.                       wants to "try out" the door without messing with his
  364.                       BBS setup.  The "/L" mode will ask the user for his
  365.                       name and run the door in local mode.
  366.  
  367.                       "/Nx"   (where x is 1..9) This specifies a "node
  368.                       number".  Some bbs software support multinode
  369.                       environments in which you must know the node number of
  370.                       the drop file to use. For example, RBBS-PC uses
  371.                       DORINFOx.DEF.  If you specified "/N2" then FIREWALL.EXE
  372.                       would use DORINFO2.DEF.
  373.  
  374.                       "/Pyyy"   This specifies the path to the drop files.
  375.                       For example, "/PC:\WILDCAT\WCWORK\NODE1" would tell
  376.                       FIREWALL.EXE to look for the drop file in
  377.                       C:\WILDCAT\WCWORK\NODE1. If this is left out the
  378.                       program assumes the drop file is local.
  379.  
  380.                       "/V"    This command will tell FIREWALL.EXE not to show
  381.                       any display on the local screen.  Only a colored screen
  382.                       and a message will be displayed.  The cursor will not
  383.                       move as it will be turned off.  Saves a little
  384.                       processing on multi-tasking systems.
  385.  
  386.                       "/W"    This flags the program that a network is
  387.                       present even though no multitaskers are detected.
  388.                       This is useful if the door is run on a network such as
  389.                       Novell that doesn't use multitaskers.
  390.  
  391. ┌───────────────────────────────────────────────────────────────────────────┐
  392. │░░░▒▒▒▓▓▓ Common Runtime Errors & Q&A to Common Problems:               13 │
  393. └───────────────────────────────────────────────────────────────────────────┘
  394.  
  395.                       Error 201  Files not found. Check to make sure that all
  396.                                  required files are in your FIREWALL
  397.                                  directory.  
  398.  
  399.                       Problem1:  "I set up a User & Password, and when he/she
  400.                                  tried to logon, they were kicked off, even
  401.                                  though they typed the correct name and
  402.                                  password"
  403.                        Answer1:  The name and password may have been
  404.                                  spelled correctly, but they probably did
  405.                                  not use the correct Capital/Lower Case
  406.                                  letters that you set up in the USERIDS.CFG
  407.                                  file.  Look at this table for examples:
  408.  
  409.  USERIDS.CFG File            What User Entered            FIREWALL's Response
  410.  ----------------------------------------------------------------------------
  411.  Joe Schmoe                  joe schmoe                   Invalid
  412.  ZZZzzz                      zzzzzz                       Invalid
  413.  John Doe                    John Doe                     Valid
  414.  BlahBlah                    blahBlah                     Invalid
  415.  
  416.                                  Again, if the user does not type out
  417.                                  *EXACTLY* what you put down in the
  418.                                  USERIDS.CFG file, they will be kicked off.
  419.                                  Unix is not forgiving, so FIREWALL shall not
  420.                                  be either... ;)
  421.  
  422. ┌───────────────────────────────────────────────────────────────────────────┐
  423. │░░░▒▒▒▓▓▓ Registering Firewall:                                         14 │
  424. └───────────────────────────────────────────────────────────────────────────┘
  425.  
  426.                       Firewall is Shareware.  You are granted a 30-day trial
  427.                       period to test the program, after which you must
  428.                       register it or cease to use it.  Use of the program
  429.                       beyond a 30-day trial period is prohibited unless the
  430.                       program is registered.  By registering Firewall, you
  431.                       can be asured of continued development of the software.
  432.                       Thank you for your support!
  433.  
  434.                       This Program may be freely distributed but DO NOT under
  435.                       any circumstances change any of the executables or
  436.                       alter any files that come in the original distribution
  437.                       archive.
  438.  
  439.                       I urge you to register as soon as you can!  The more
  440.                       registrations that I have will show the interest of
  441.                       people in the program, and I will release a newer
  442.                       version with many more features.  If you register, the
  443.                       10 second "nag" delay when Firewall fires up, will be
  444.                       removed.
  445.                       
  446.                       If you wish to register, please fill out the
  447.                       registration form REGISTER.DOC enclosed with this
  448.                       archive.
  449.  
  450. ┌───────────────────────────────────────────────────────────────────────────┐
  451. │░░░▒▒▒▓▓▓ Acknowledgements:                                             15 │
  452. └───────────────────────────────────────────────────────────────────────────┘
  453.  
  454.                        DDplus 7.1 - Distributed by Steve Lorenz and Bob
  455.                                     Dalton - 1995
  456.  
  457. ┌───────────────────────────────────────────────────────────────────────────┐
  458. │░░░▒▒▒▓▓▓ Thanks!                                                       16 │
  459. └───────────────────────────────────────────────────────────────────────────┘
  460.                       
  461.                        *  To my wife for putting up with me spending way too
  462.                           much time on the computer! :)
  463.  
  464.                        *  To my beta testers for finding da bugs!
  465.  
  466.                        *  To all of you who have registered, and are
  467.                           contributing to the development of this program!
  468.